class CommonParams {
  String method = '';
  String uniqueId = '';
  Map<String, Object>? arguments;

  Object encode() {
    final Map<String, Object> pigeonMap = <String, Object>{};
    pigeonMap['method'] = method;
    pigeonMap['uniqueId'] = uniqueId;
    pigeonMap['arguments'] = arguments ?? <String, Object>{};
    return pigeonMap;
  }

  static CommonParams decode(Object message) {
    final Map<String, Object> pigeonMap = message as Map<String, Object>;
    return CommonParams()
      ..method = pigeonMap['method'] as String
      ..uniqueId = pigeonMap['uniqueId'] as String
      ..arguments = pigeonMap['arguments'] as Map<String, Object>?;
  }
}